//加载模板内变量
@import "../common/variables_front_custom";
@import "../common/variables_front_default";
@import "../common/variables";
//加载通用混合
@import "../common/mixins";

.user-profile-menu {

	.list-group-item {
		padding: .5em 1em;
		border: none;
		&.active {
			background-color: transparent;
			color: $state-success-text;
		}
	}

	.menu-toggler {
		padding: .25rem .75rem;
	}

	#menu-collapse {
		@include media-breakpoint-up('sm') {
			display: block;
		}
	}
}

.oauth-bind {
	a {
		color: $font-color-base;
		display: inline-block;
	}

	span {
		display: block;
	}
}

.user-avatar {
	$avatar-width: 60px;

	border-radius: 50%;
	display: inline-block;
	position: relative;
	height: $avatar-width;
	width: $avatar-width;

	span {
		line-height: $avatar-width;
		display: none;
		position: absolute;
		color: white;
		background: rgba(#000, 0.3);
		width: 100%;
		height: 100%;
	}

	&:hover {
		span {
			display: inline-block;
		}
	}

	img {
		width: $avatar-width;
		height: $avatar-width;
	}
}

.user-avatar-tip {
	font-size: 10px;
}

.img-cropper-original {
	max-height: 400px;
	min-height: 200px;
	overflow: hidden;
}

.img-preview {
	canvas {
		width: 100px;
		height: 100px;
		padding: 2px;
		border-radius: 2px;
		border: $default-border;
	}
}

#avatar-tips {
	padding-top: 70px;
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}

$menu-bg-color: #3c3c3c;
$menu-font-color: #acacac;
$menu-bg-active-color: #2ca2fc;
.side-menus.list-group {
	display: flex;
	flex: 1 1;
	.list-group-item {
		border-radius: 0;
		background: $menu-bg-color;
		color: $menu-font-color;

		&.active, &:hover {
			background: $menu-bg-active-color;
			color: lighten($menu-font-color, 80%);
		}
	}
}